Multiple sensors same time problem

I'm newbie and planning simple home automation system with MicroView (Uno compatible).

Just few buttons (state change) and couple of digital/analog temperature/humidity sensors.

I can get one sensor at a time working, but it's hard to combine code and make all working same time.

Is there any simple sample code without any fancy stuff, which can read these sensors same time?

I can then modify it.

Thanks

You can't read multiple sensors at the exact same time but you can read them with just a few micro- or milliseconds interval which is as good as "the same time" for most applications.

Have a look at the demo Several Things at a Time
and at
Planning and Implementing a Program

...R

Hi Abby-ino,

How are you reading the sensors? As Robin2 says, you should be able to read them sequentially in your main control loop, switches included.

I can't quite tell from you posting what you have been able to accomplish. Have you gotten the sub-parts of the project to work and now are trying to put them all together?

Pat.