This is the source code for the WS1 and WS2 sensors.