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.
- 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.
Copyright (c) 2025. ClassicDIY
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.