When a person stands below the ultrasonic sensor, the Arduino measures the distance from the sensor to the person’s head and calculate the height.
Distance from sensor to head: 45 cm
Human Height: 155 cm
| Sensor Fixed Height | Distance to Head | Human Height |
|---|---|---|
| 200 cm | 50 cm | 150 cm |
| 200 cm | 40 cm | 160 cm |
| 200 cm | 30 cm | 170 cm |
The height value will be shown in the Serial Monitor like:
Human Height = 155 cm