Moved from google code.
Added read sensor state feature