The Garage Parking Assistant makes it easy to pull in the garage by signaling you with a traffic-light style display of when to pull in (GREEN), slow down (YELLOW) and stop (RED). If you pull too far in the Red LED blinks to let you know. Although this type of project has been done before I wanted to take my own approach and simplify the code and hardware while making it easy to adjust/personalize for your own use. By default all measurements are in inches, although you could easily use centimeters since that value is available as well. The range of the PING))) sensor is split up into four zones labeled Zone1 through Zone4.
Source: Chris Savage