A friend of mine did something like that in our university, at the computer science lab. The door opens by putting your hand over a proximity sensor, so every time someone was knocking the door someone has to actually go to the door and open it. The solution? An Arduino that makes spin a piece of hard paper connected to an app. Still working.
Fun fact, we call this in Colombia an "empanada" (just Google it)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.