Skip to content

Commit 3a689d6

Browse files
Add note for 3.3V boards
1 parent 702a064 commit 3a689d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/built-in-examples/01.basics/ReadAnalogVoltage/ReadAnalogVoltage.md

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ To change the values from 0-1023 to a range that corresponds to the voltage the
4848

4949
`float voltage= sensorValue * (5.0 / 1023.0);`
5050

51+
***Please note that this example was initially conceived for 5V boards. If you are using a 3.3V board, you should change '5.0' to '3.3' in the code above to ensure it correctly aligns with your hardware.***
52+
5153
Finally, you need to print this information to your serial monitor. You can do this with the command [Serial.println](https://www.arduino.cc/en/Serial/Println)() in your last line of code:
5254

5355
`Serial.println(voltage)`

0 commit comments

Comments
 (0)