NTC thermistor and potentiometer

i want led to glow if tempValue is higer then sensorValue and sensorValue isadjustable with potentiometer

NTC thermistor (MF52-103) potentiometer led

int temp = A0; 
int sensor = A1;  
int ledPin = 9;      
int sensorValue = 0;
int tempValue = 0;

void setup() {
  
  pinMode(ledPin, OUTPUT);
  Serial.begin (9600); 
  }
void loop() {

  sensorValue = analogRead(sensor);
  tempValue = analogRead(temp);
  Serial.print("temp: "); 
  Serial.println(tempValue);
   Serial.print("sensor: "); 
  Serial.println(sensorValue);
  
  if   (tempValue < sensorValue)
  { digitalWrite(ledPin, HIGH); }
  else { digitalWrite(ledPin, LOW);}
  delay(5000);
}

…and the question is…?

How are the components wired ?

Hi, @glenn1x
Welcome to the forum.
Thanks for using code tags.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Tom... :smiley: :+1: :coffee: :australia:

Hi, @glenn1x
What is your question?
Does your code work or not?
If not what does it do?

Thanks.. Tom.. :smiley: :+1: :coffee: :australia: