the problem is, i get 4 lines in serial monitor for android: 5;6;7;13. (no matter where the magnets are)
the bright side is the leds light up correctly.
i am not so good at asking questions, but here is my code:
byte reed[4] = {4,5,6,7};
void setup() {
for (byte i = 1; i <= 4; i++) {
pinMode(reed[i], INPUT);}
Serial.begin(38400);}
void loop(){
for (byte i = 1; i <= 4; i++) {
digitalRead(reed[i]);
Serial.println(reed[i]);
}
delay(2000);}