void setup()
{
Serial.begin(9600);
}
void loop()
{
/* This code expands and shows us the pot value being read and compared
to the voltage of the instance*/
int POT_Value = analogRead(A0);
float Voltage;
Voltage = POT_Value*(5/(float)1023);
Serial.print("Value: ");
Serial.print(POT_Value);
Serial.print("\tVoltage_value: ");
Serial.println(Voltage);
delay(500);
/* This code will only read the sensor value from the pot
and when we want the voltage to be read as well we will
then use the voltage converter. */
/*
int sensorValue = analogRead(A0);
Serial.print("Potmeter Value:");
Serial.println(sensorValue);
delay(500);
*/
}