arduino analog input voltage to digitalWrite( HIGH); code example Example: digitalwrite C++ digitalWrite(pin, value)