Raspberry Pi - Serial UART Communication
Find the bug in this Raspberry Pi Python code for serial communication:
import serial
ser = serial.Serial('/dev/ttyS0', 9600)
data = ser.read(5).decode('utf-8')
print(data.upper())
The output is always empty.