fix create sensor bug

bug caused user to not be able to create a new sensor