Switch relay using magnets and reedswitches

Hi All,

I want a electronic puzzle with 4 reedswitches and 4 magnets.
I want to create something that people have to remove the magnets on the right order to switch a relay

So people have to remove first Magnet 2, then magnet 3, then magnet 1 and then magnet 4.
Only after that correct order the relay switches.
If they do it on another order the relay does not switch.

Is this possible to do?

I hope to hear from you already thanks for the help.

Kind regards,


Yes, it is.

What experience do you have with Arduino ?
Do you know how to read the state of a digital input, for instance ?