1

How can I use Arduino Uno Analog Pins as Digital pins, So that I can Attach more components like sensors to the Arduino? My 13 pins are preoccupied and I want more.

6
  • with digitalWrite and digitalRead. what is your question? arduino.cc/reference/en/language/functions/digital-io/… – Juraj Oct 29 '20 at 9:33
  • For Arduino Uno – Amit Nikhade Oct 29 '20 at 9:38
  • yes for Uno. you tagged the question with [arduino-uno] – Juraj Oct 29 '20 at 9:43
  • Can you provide me any code sample as an instance – Amit Nikhade Oct 29 '20 at 9:49
  • Any of the analog pins (with exception of A6 and A7) can also be used as digital pins, just like any other pin of the Arduino. Just use pinMode(), digitalWrite() and digitalRead() on them, as you like. – chrisl Oct 29 '20 at 9:51