Geiger counter

I haven’t a clue about radiation detection… but you are trying to enable and disable a timer by its supposed ID times that you haven’t actually declared first (as a timerID).

You are already using times as another variable, but if it was instead meant for a timerID it would first need to be declared as such…

int times;

times = timer.setInterval(1000, MyFunction);  // example of declaring a timerID for use with enable() disable() restartTimer(), etc.

https://playground.arduino.cc/Code/SimpleTimer