Temperature sensor project (invalid pin error)

For the following code
I’m getting the error as invalid pin.

Have you done the connection properly? A0 pin should be connected to the output pin of the LM35(middle one) and the connections should be tight.

I think you have written ‘AO’ (alphabet O) instead of ‘A0’ (number 0) and that is why it is giving an error because you have defined a pin that does not exist on the Bolt module and thus is invalid.
The second line in the while loop should be:
response = mybolt.analogRead(‘A0’)


Yes everything’s fine. I confirmed

@arikalavaishnavi try implementing the suggestion given by @srishtikrastogi.

1 Like

Yeah thank you it worked