You will see working with digital teams as input beams is really easy once you have already understood
how to work with them as output pins.
But let's come back to our previous diagram.
What you've seen from now is that in order to use a digital pin first, you need to set its load so
you can choose to set the mood as output.
And then you can either change the state with binary halo state of some of the digital pins you can
set and unlock value.
Now, if we come back to the part where we set the pins mold, the other option here is input.
And when you choose input, then what you can do is to read a digital value from the component.
This value will be binary, either high or low.
If the voltage on the pin is close to five five-fold, you will get the value high and if the voltage
is close to zero volt, you will get the value low.
Note that you can't read analog values when using a digital pen as an input pen.
Only high and low state, for example, with the push button in the next lesson, when you read the
Penn State, you will directly know if the button is priced or not.
And to know that you simply have to take it to the state for the pin is high for price are low.
Followed, pressed.