This sketch defines two variables: lowerThreshold and upperThreshold. These variables represent our thresholds. From the setup purpose, we initialize the serial conversation at 9600 baud, established the LED pin as output, and assure it's turned off at first. Your browser isn’t supported anymore. Update it to get the greatest YouTube https://controltechme.com/ultrasonic-level-sensor/