Fixed bug #24

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