I have a Mega connected to a Mac.
I have a simple LED attached to one digital pin, and an analog sensor attached to an analog pin. I can switch the light on and off with no delay using a button. I can move the pot (analog input) and see an immediate response on the widget in the dashboard.
However, when I make a trigger to turn the LED on when the sensor value gets to a certain point and turn off when it falls below a certain point, it is very very very slow. I mean like a minute or more before the trigger causes the LED to change state. Is it supposed to be this slow? How do I make it so the LED is operating at the same time as the gauge widget? Doesn’t seem right that the delay should be at times several minutes, or not work at all.