This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I keep receiving 0 from one of lm35 sensors

Hello everyone, I'm trying to read the temperature of two LM35 sensors and send them to my phone using HC06 bluetooth module. I've successfully received the temperature of one the sensors on my phone, but when I added the second sensor I received only 0. I checked my circuit connections and tried different adc channels, but still I keep receiving 0 from the second sensor. Interestingly when I use only one adc channel I receive the correct temperature, but when I use 2 adc channels I receive the correct temperature from one sensor and 0 from the other one. Moreover, in debug mode I receive 0 from one of the adc channels, so clearly the problem is with adc and not uart part of the code, I think

Thanks in advance

0