Serial Communication with Arduino to control Relays --- Code not entering 'If' statement

ChatGPT has obviously not read the fundamental Arduino tutorial Serial Input Basics.

Follow the methods of that tutorial to format, read and parse the serial data and you won't go wrong.

1 Like