Make sensor accept blocks instead of procs

Fixes #28