bug #24 fixed

created a receiver that receives the unlocking event and makes sure that
the reading automatically doesn't start after we unlock.