added device protection and packagemanager sensor v.2