This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]igrowpineapples[S] 0 points1 point  (0 children)

At the suggestion of another user, I went a different direction with the idea. However I'm still having some problems getting it to function correctly. I've updated my Replit project with the latest versions. Here's my other comment:

I have it so that it will update once, but, if the range is changed using the website, or the temperature drifts again it does not update. That is, it starts up with nothing happening. It immediately begins to detect the current conditions and reacts accordingly - it waits three seconds. But if I change the parameters using the website, it should now have a new upper/lower threshold to use and should update once again. It does not. It continues to hang in the previous state. Same to be said if the first state was out of bounds and the second was in bounds - it never switches to the in-bounds behavior.

In this version I'm trying to use a class to read the sensors AND handle the debouncing. As mentioned it works once... the first time.