i was doing a arduino code with link to python. the situation like this:
case 1: key in idnumber, the will send to python to compare the idnumber is correct or no
when is correct will go another step to continue else the idnumber is wrong will jump to the state wrong than return to initial. In correct stage, have to key in the room number you wan.than the number u key in will send to python to record.
case 2: scan the rfid tag,the arduino will send the tag number to python compare. than python will give feedback that the rfid tag belong to which state.
Was my coding was wrong at which part?
ard.txt (9.79 KB)