Reading the sensors

maybe your question will be answered with these posts: