sensors api; fixes #6