Switching between 3 sensors

Im trying to merge 3 of my sensors into one unit. The case is that I have 3 sensors that i want to use, but not at the same time. I would like to switch between them when needed.(pushbutton) I also need to adjust the sensitivity for the sensor with a potentiometer.

Could this be done with the arduiono switch case function?

Any help is much appreciated.

Probably.

But you need to give us some information.

  • What sensors?
  • What have you tried?
  • Do you have code for each sensor already working?
  • What do you wnat to do with the data? Just display?

septillion:
Probably.

But you need to give us some information.

  • What sensors?
  • What have you tried?
  • Do you have code for each sensor already working?
  • What do you wnat to do with the data? Just display?

The sensor I am going to use is: light sensor, microphone, and a pir.
I have the code for light sensor and pir working already. The data from the sensor is going to trigger an event. IT does not need to be displayed.

So far i have not tried to merge the code into one. Want to get some feedback first.
And I am very new to the arduino

You need to post your code(s) if you want help.

This Simple Merge Demo should give you a starting point. The Arduino system is great for learning-by-doing.

I presume you are aware that two sensors cannot normally be connected to the same Arduino pin.

...R