IoT Rangefinder

Here to learn how to find distance and Plot the Sensor readings to Webserver in Real-Time Chart using the ESP8266 and ultrasonic sensor. The ESP8266 will host a web page with real-time graph that have new readings added every 1.5 seconds and to keep refreshing the page to read new readings.

Circuit Diagram

Components Required

To make this project you need the following components:

  • ESP8266 Development Board

  • HC-SR04 Ultrasonic sensor

  • Breadboard

  • Jumper wires

Ultrasonic HC-SR04 wiring to ESP8266

Ultrasonic HC-SR04 ESP8266

Vcc Pin Vin Pin

Trig Pin D1 (GPIO 5)

Echo Pin D2 (GPIO 4)