Battery integrated detector