Hello, I am new to arduino and coding, I was wondering how would i use a potentiometer to adjust the value of celsius and print it to the LCD and have that value become the new threshold.
#include <LiquidCrystal.h>
int reading = 0;
int sensorPin = A0;
int relay =7;
Welcome to the Forum. Please read the two posts by Nick Gammon on guidelines for posting to this Forum, especially the use of code tags ("</>") for code listings. Then, see if this helps:
do you have a temp sensor hooked up to A0 as ive never seen a sensor that works by just dividing the analog input by 2 to get temp in c or are you just bench testing a idea?
sorry i forgot to mention that, yeah i am im using a LM35 temp sensor,but i want to make the threshold adjustable with a pot and have it printed to the lcd.