Hey Guys,
I have a problem.
if i read 2 digital signals on 2 analogpins (A6 and A7) on my Arduino Nano Every, i get every time both readouts 1! Where is my mistake? The circuit diagram is attached. The resistorvalues are 3,7M-Ohm. Sorry for my English.
Resistor values are ridiculously high for this application. 10k makes a lot more sense.
You probably have to wait longer to allow the 3M7 resistor to pull down the pin (takes a while - stray capacitance and so), and even then that pull-down is so weak the pin may be affected by stray electric fields.
Also, I'm quite sure you'll need to select Tools > Registers emulation: ATMEGA328
EDIT: Just tested with above and Tools > Registers emulation: None (ATMEGA4809)
Both work, so yep, just need to fix your code and resistor values.