For the PIN 13 I don't want the full 5v output. Is there a way with programming to give a 2.2v level?
For A0 I want to be able to adjust the threshold to control PIN 3 to go high when the threshold is met.
digitalWrite (3, analogRead(A0) >= myThreshold);
The IR LED is 2.2V. But you suggest I do this in hardware?