Implements a Modbus server and an MQTT publisher. Relays are triggered at configurable water levels.
This project is based on the ESP32, it works with a Submersible Level Sensor 4-20ma Pressure Sensors.
ESP32 X4 Relay Board | ![]() |
---|---|
Piezoelectric Submersible 4-20mA Level Sensor | ![]() |
Device Pin | ESP32 |
---|---|
FloatLevel red | 24VDC |
Use 135Ω (2 X 270Ω in parallel) from A0 to GND | |
FloatLevel black | A0 |
Used the following development tools;
- Visual Studio Code with the PlatformIO extension.
- ***** Don't forget to upload the index.htm file for the initial setup of the ESP32, Run 'Upload File System Image' platformio command
- Setup WIFI configuration by logging onto the "FloatLevel" Access Point, use the admin default pw: 12345678 as the AP password. Browse 192.168.4.1 and go to Configuration Page to provide your WIFI credentials.