File "door_controllerTEST_V4_RFID.py", line 80, in readFile
id, tag = line.split(',')
ValueError: need more than 1 value to unpack
Most likely, line
did not contain a comma. As a result, .split(',')
only returned one string, so it could not unpack into your two desired variables.
For debugging purposes, print line
before you try to split it, to see if it contains the expected information. If not, you should work backwards to try and see where the unexpected value is coming from.