Temperature sensor reading when disconnected

Hi, I am using a temperature sensor in a program. The sensor is connected to a nano board which then transmits via RF to another nano the temperature. This all works perfectly until the transmitter is disabled from the first board. Then the receiver board continues to display the old temp readings.
Anyone got any idea what is wrong here and how to fix it? I have even tried putting in a value for temp in the receiving board but this is overwritten by the old temp readings.

What do you expect to show when no data is coming in?
Once you know that you can write your code to make your system do this.

You might want to look at this How to get the best from this from this Forum before you proceed any further.

It tells you hoe to ask a question here.

In your receiver, tag the time each new message is received.. if its more than three times your normal interval, the receiver should say “Comms Error” or something like that .

When the next two ‘good’ values are received, you can carry on displaying them.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.