Skip to content

Loop #5

@Prod69

Description

@Prod69

Hello Jacques,

Firstly, let me thank you for producing this code for the SHT2x sensor.
At first I was getting the same error as some others due to not changing the i2c to bus 1 near the end of your code - but now I have it running on SHT25 sensor on bus 1. I did not have to change anything else so your code works just fine on the newer sensor too and I guess it would also for the SHT7x.
I have some code which returns results from 2 other sensors, a MCP9808 Temp sensor and MS5611 Barometric Pressure sensor. Neither written by me but I did manage to integrate them together into one and they run in a loop indefinitely and return results every 10 seconds.
When I try to integrate your code or loop your code, it goes crazy and returns results very quickly no matter what time.sleep I use.
My question is, if I may, and I hope you will forgive me as I am very new to all this:
If you could shed any light on anything obvious which would cause problem with looping? For my project I need to get results returning from my sensor array 24/7 at regular intervals.
Hope it is ok to contact you here, there is no issue with your code but I thought I would give you a try.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions