period of sensors is now variable
implemented observer using the java interface, but doesn't seem to be working...