detecting sensors code not working and a comment on EasyVR module

I played with this module (shield actually) about two years ago, and I remember that the (robot) commands it came with were completely useless. As said, you can train/record your own commands with the EasyVR-Commander software. I used a 'wake-up' command first (to stop false actions), and then a range of actual commands (could be several branches/levels). I eventually, after weeks of trials, got to a 90%+ success rate.
Don't try to speak into the mic at close range. 1-3meters works fine. Use a natural/clear voice, and a 'dead'/quiet room (no echos).
You ofcourse need to train/record the commands also at that distance.
The module also has AFAIK some memory for pre-recorded (talkback) voice/sounds. Never played with that.
Leo..