I have no more space with digital pins in my arduino project. I want to use the dht22 in an analog pin because there are 4 left I can use, but digital are all busy.
I've got the project connected this way:
digital (2-5): 4 relays.
digital (6-13): the 8 pins for the 4x4 matrix keypad to write some requiered numbers.
analog(A4-A5): the 16x2 LCD.
analog(A0-A3): are empty, i wanna use one of them to connect the DHT22.
Or maybe i can use the 4x4 matrix keypad in analog pins, then I would use, 4 digital for the 4 relays, 4 digital for 4 pins of the 4x4 matrix keypad, 1 digital for the DHT22, 2 analog for the LCD display, the 4 analog pins left for the 4 left pins of the 4x4 matrix keypad?.
What do you suggest me to do?
Use one of the 4 analog pins left for the DHT22 (If it's possible) or use 4 analog pins for 4 of the 8 4x4 matrix keypad pins (the 4 left with digital pins as usual)?