compilable version of the ubsisense sensor