Moved sensor def to config