Or, there is the "Blink Without Delay" example to look at. Instead of turning an LED on or off, you would be reading a sensor.
Or, there is the "Blink Without Delay" example to look at. Instead of turning an LED on or off, you would be reading a sensor.