Hey
I've some SDI-12 Sensors : TEROS 12 | Soil Moisture Sensor | METER Group
and a gateway that only communicate with RS485 RTU sensors
I'm planning to use an ESP-32 to collect the readings from the sensors using this library : GitHub - EnviroDIY/Arduino-SDI-12: An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
and then somehow i want to communicate between the ESP and the gateway with modbus to be able to forward the readings to the gateway
I have an idea about using MAX485 to communicate between the MCU and the gateway but i don't know what the steps i need to do it
note : also i may use arduino pro mini instead of ESP-32 to minimize the enclosure and make it productize it in a way as it will be in a real world project
Thanks