added api check for the notification sensor