nodemcu has 1 analog pin so two resistors or a voltage sensor and some math you get voltage..
as for switches there are several ways that's up to you..i am using 3 position switches on/on/off "on auto off" where auto is a relay.
as for switches there are several ways that's up to you..i am using 3 position switches on/on/off "on auto off" where auto is a relay.