Lightning Detector and the Study of Sprites