statistics for sensors (fixes #46)