This reposity is used to read RS485 sensor with Raspberry Pi
sudo raspi-config -> Interfacing Options -> Serial -> login shell(no) -> port hardware(yes)
Then: sudo vim /boot/config.txt -> Enable_uart=1 -> sudo reboot The /dev/ttyS0 is the RS485 serial port
read the data with the request-response scheme:
The request code can be found in the sensor instructions:
Read the data using the following code:
Then using influxdb + grafana + telegraf to display the data online: