User Manual
www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 55 / 67
11.3 How to use the sensor pin of LG01-S?
The LG01-S has the external sensor pins from the Mega328P MCU, it can connect to external
sensor, below is the pin definition for LG01-S:
The program method for these pins are the same as Arduino, what should notice is that the pins
are 3.3v I/O base.
Here is an example for how to use it with DS18B20 temperature sensor.
Hardware Setup as below:
Source code is in this link:
Sensor and LoRa client side
Gateway side
Result screen shot:










