LDR + PIR + FC-04

Hay, is it possible to connect LDR,PIR and FC-04 sound or clap sensor, call it how you wish all together with arduino to make possible this:

When LDR sense dark then trigger pir sensor and switch light on for few seconds and if i want switch light with 2x hands claps to light work all the time and when i 2x clap again arduino goes to pir state and pir then switch light when sense moving

so, is it possible combine those three sensors all together in one integer or in entire code?

LDRs on analogue inputs is basic. PIR input on digital input is basic. Microphone input is basic.

The programming is not difficult.

Come up with a circuit and program after searching the site and we will help overcome any problems you encounter.

Weedpharma