I am offering a SOFTWARE for the Water level monitor project. This allows you to measure the height of the water (or similar liquid) in the well.
The principle of measuring ultrasonic sensors is to send a Trigger signal of a certain length, which is reflected from the surface and returned to the receiver - Echo. Based on the conversion of time with respect to the speed of sound propagation, it is possible to determine the distance between the sensor and the water level.
The project uses an ultrasonic distance sensor HC-SR04 (detection angle 15 °), or a water test sensor JSN-SR04T (detection angle is 60 ° to 75 °) and an Arduino microcontroller with Ethernet module Wiznet W5100 or W5500, or WiFi platform ESP8266 (NodeMCU, Wemos D1 Mini) or ESP32 (Devkit).
The software contains a wiring diagram for all these platforms. The mentioned platforms ESP8266 and ESP32 can also be operated in Deep Sleep mode, which will dramatically reduce their consumption. Also in StandBy mode there is also an implementation for Over The Air (OTA) firmware update via LAN - only platforms ESP8266, ESP32. OTA updates cannot be used for Deep Sleep mode.
For the operation of the project, it is necessary to have a web server on a public IP address or in a LAN network, where the given platform sends data from the ultrasonic sensor. The web server runs an application that shows the user the latest data in the monitor, but also the water level for the month, week, day in clear graphs or tables.
The web interface also contains a record of records - maximum, minimum value of the water level in 24 hours, 7 days, 30 days. The web application also has various variable data - the depth of the well (serves as a calibration value for measurements), as a higher level = a smaller value between the level and the sensor, which is located at the top of the well.
Therefore, the measurement is subtracted from this value to determine the actual water level from the bottom. The second variable parameter is the diameter of the well, which can be used to convert the volume of the well in liters with the current level and also contains an estimate of the maximum depth of the well at a given diameter for the most accurate measurements without reflections.
The estimate is calculated by trigonometry. Source codes for all these platforms, wiring diagram, libraries for the HC-SR04 / JSN-SR04T sensor are included directly in the web application. Data is sent to the web interface via HTTP / HTTPS protocol with POST payload. The combination of Arduino with Ethernet only allows the use of the HTTP protocol.
I OFFER ONLY SOFTWARE!
The web application has language mutations: