Simple sensor

first you set A1 high and A2 to ground
then A2 high and A1 to ground

So for more floors you just connect all the not in use to ground and only the one you
need to the resistor and then to 5V