Lightening detector