Raspberry Pi - Serial UART Communication
What is the issue in this Raspberry Pi Python code for serial communication?
import serial
ser = serial.Serial('/dev/ttyS0', 9600)
data = ser.read(5).decode()
print(data)