RELAY Pin.
Trigger Pin
Echo Pin
The range of the object from Ping Sensor
The Distance value
Create and initialize the Ultrasonic object.
To the relay via the transistor
The distance in inches. Change this for increasted or dicreasted range.
Range is calculated in Centimeters.
Range is calculated in Inches.