Hi, first of all: thanks for your code.
I connected my CAJOE radiation detector to my Arduino MEGA 2560.
I don't know why, but the CPS counter, after some seconds (less than a minute) doesn't work anymore and is stuck to 0.
I made several attempts and always got this issue.
Here's a screenshot I made:
