# Example Sketch for ESP32+RFM95+I2C Sensor

**URL:** <https://www.thethingsnetwork.org/forum/t/example-sketch-for-esp32-rfm95-i2c-sensor/20710>\
**Category:** End Devices (Nodes)\
**Created:** [December 14, 2018, 3:58am UTC](https://www.thethingsnetwork.org/forum/t/example-sketch-for-esp32-rfm95-i2c-sensor/20710 "2018-12-14T03:58:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Somsak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/somsak/32/45700_2.png) [@Somsak](https://www.thethingsnetwork.org/forum/u/Somsak)\
**Post date:** [December 14, 2018, 3:58am UTC](https://www.thethingsnetwork.org/forum/t/example-sketch-for-esp32-rfm95-i2c-sensor/20710/1 "2018-12-14T03:58:42Z")

</div>

I expect to make TTN node with ESP32 doit. Can anyone point me to schematic or wiring diagrams with RFM95 and I2C sensor? Especially with example sketch.

Somsak

---

<div class="post-metadata">

**Author:** ![ursm](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ursm/32/46475_2.png) [@ursm](https://www.thethingsnetwork.org/forum/u/ursm)\
**Post date:** [December 22, 2018, 3:59pm UTC](https://www.thethingsnetwork.org/forum/t/example-sketch-for-esp32-rfm95-i2c-sensor/20710/2 "2018-12-22T15:59:20Z")

</div>

look here [https://github.com/urs8000/particulate-matter\_ESP32\_SDS011\_BME280\_DHT22](https://github.com/urs8000/particulate-matter_ESP32_SDS011_BME280_DHT22)  
and remove all of SDS011

---

<div class="post-metadata">

**Author:** ![Somsak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/somsak/32/45700_2.png) [@Somsak](https://www.thethingsnetwork.org/forum/u/Somsak)\
**Post date:** [December 25, 2018, 7:19am UTC](https://www.thethingsnetwork.org/forum/t/example-sketch-for-esp32-rfm95-i2c-sensor/20710/3 "2018-12-25T07:19:13Z")

</div>

Thank ursm. Testing with my sketch and your sketch.  
I faced many problems. My Doit board is quite sensitive. Wrong wiring will shift boot address 0x13 to others address. I still do not success in using it with RFM95 and I2C sensor. I still have to find out which pins are already assigned to flash mem or USB. My BME280 must be conflicted with internal used pins.

Somsak

---

<div class="post-metadata">

**Author:** ![Somsak](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/somsak/32/45700_2.png) [@Somsak](https://www.thethingsnetwork.org/forum/u/Somsak)\
**Post date:** [December 25, 2018, 1:02pm UTC](https://www.thethingsnetwork.org/forum/t/example-sketch-for-esp32-rfm95-i2c-sensor/20710/4 "2018-12-25T13:02:20Z")

</div>

Now, everything is fine. I spent a month with my short circuit breadboard.
