This is an Arduino Library for the AS3935 Lightning Detector by AMS. This library adds both I-squared-C and SPI functionality for the <a href="https://www.sparkfun.com/products/15276" SparkFun AS3935 Lightning Detector</a>. The library gives you the ability to read lightning, get an estimate on its' distance, check its' 'energy', but also to reject noise and false lightning events. It also provides functions to tune the resonance frequency of the antenna! The entirety of the library's functions are demonstrated in the provided example code, making it easy to understand and follow along!