Question: what is pinmode in arduino?
Answer: Analog Input pins are used to measure a voltage. Sometimes I see people use Arduino's pinMode() to configure it as an INPUT. However, this is not necessary, for two reasons. pinMode() sets up a pin for use as a digital input, not analog input. When calling analogRead(), it reconfigures the Analog Pin for “input.”