Do not use files with 0 and 1 to open the door
It is a hackish way to do it, not very user-friendly, probably dangerous (since there is a maximum number of write cycle on a sd card, event if it may not be the program that does most of the file writings).