BSR:
The only problem with that is that the switches only close when the magnet is close. If the door is between switches, you won't know where it is.
However, if you have a program that is tracking it and remembers the last switch that was closed, then you know the position within the resolution of the switches.
Only one resistor will be removed at a time. So you will need to come up with a pattern of resistor values that will give you a reasonable range of voltages. All resistors in-circuit will produce a minimum (or maximum) voltage indicating that the door is between switches.
The only problem with that is that the switches only close when the magnet is close. If the door is between switches, you won't know where it is.
However, if you have a program that is tracking it and remembers the last switch that was closed, then you know the position within the resolution of the switches.
Only one resistor will be removed at a time. So you will need to come up with a pattern of resistor values that will give you a reasonable range of voltages. All resistors in-circuit will produce a minimum (or maximum) voltage indicating that the door is between switches.