pull down resistor arduino code example
Example 1: arduino internal pull up resistor
pinMode(2,INPUT_PULLUP);
Example 2: arduino internal pull up resistor
Serial.println(sensorValue, DEC);
Example 3: arduino internal pull up resistor
pinMode(13, OUTPUT);
Example 4: arduino internal pull up resistor
Serial.begin(9600);
Example 5: arduino internal pull up resistor
int sensorValue = digitalRead(2);