implemented logic for auto-creation/updating of sensors during definition creation