Garage parking sensor code for Raspberry Pi GPIO
This code is an example using the ultrasonic sensor HC-SR04 and 3 LED's (red, green and blue) to create a parking sensor.
LED color meanings:
- RED (GPIO 17) - Object is too close
- GREEN (GPIO 22) - Object is between min/max range
- BLUE (GPIO 27) - Object Detected