basic gpio reading in deamon