Add Apache 2.0 License
Modify base Sensor creation