I want to connect a pressure sensor that use a RS485 communication to raspberry pi, when I connected it to RS485 to UART converter to the raspberry but when I ran the code the output is b'' with no numbers from the sensor can anybody know how I can read from the sensor ? 'KITA' is the sensor I use.
import serial
import time
ser = serial.Serial('/dev/serial0', 9600, timeout=0.1)'
ser.write(b'$PF,200\r\n')
ser.write(b'$PO,20\r\n')
x = ser.read()
print (x)