add monitor peripheral detection
add retry count system and trapdoor activation on three tries (need wiring)
Merge pull request #2 from adamdowner/master

new tricks :)