OTAA example for the LMIC of TTN ---> https://github.com/things-nyc/arduino-lmic
This examples use the functions of LMIC to read diferent kind of sensors and it use the LMIC callback and functions to not interrupt the running OS