* It uses the Arduino pulseIn() function to measure the duration of a HIGH pulse.