Finished implementation of SensorType and DeviceType.