Смотреть видео: Hall effect sensor and pull down resistor - Programming Questions - Arduino Foru