fixed bug when arduino first boots and locks door