Fix sensors' algorithms in interface and plugins.