Do you know how a park sensor works? They uses ultrasonic sensors. By the eyes coming together with the module of ultrasonic sensor, it measures the distance to in front of it and sends a signal changing with this distance. There is two modes. In “far” mode, the signal increases as the distance increases. In “near” mode, less distance means more signal.