home alarm system

Hi.
i am working on a alarm system project use a Arduino to read 8 inputs which are coming through a 8 stage static register ( CD4021BE) i am have a problem now which switch has been closed and which one is open i need some help with the programming to now which input is which i have found some code (Shiftin) from the adrunio web site i have made some changes to it but sure how to now which number is which.

the newbie
chilliman :slight_smile:

Are you getting reliable inputs from the 4021, just don't know how to interpret the data?

Or is it that you can't read the SR in the first place?


Rob

Have a look at this Security Sensor Shield for Arduino | Freetronics
It may simplify your project.

Thanks billcramer07 this just i what.

thanks
chilliman :slight_smile: