smartpir