clode clening and sensor event