Raspberry Pi - Serial UART Communication
What will this Python code print on Raspberry Pi if the serial device sends the string 'World'?
import serial
ser = serial.Serial('/dev/ttyS0', 9600)
data = ser.read(5).decode('utf-8')
print(data)