Level testing fails

I think it’s coding errors :wink:

Can you show the code for the door?