added type to sensor