fix some sensor bugs
Merge branch 'master' into gh-pages