replace pysensors, various fixes