sensors: move logging into base class
sensors: add a test sensor for generating random data