Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. MySensors Library

MySensors Library

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 2.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DdawmeD Offline
    DdawmeD Offline
    Ddawme
    wrote on last edited by
    #1

    Hi Guys,

    I am struggling to import the MySensors library into Arduino IDE. I have spent the last two days googling and trying things to no avail. I am running Ubuntu 16.04.

    I have the Arduino IDE installed ant it is functional. I can upload one of the example codes to a Arduino MicroController and it works. I can even see the MySensors Library under sketchbook. The problem arises when i try and use any of the codes bundled in the MySensors library. When I try and verify the code I get the following error...

    Arduino: 1.6.9 (Linux), Board: "Arduino Nano, ATmega328"

    /home/dane/sketchbook/Arduino-master/libraries/MySensors/examples/HumiditySensor/HumiditySensor.ino:31:24: fatal error: MySensor.h: No such file or directory
    #include <MySensor.h>
    ^
    compilation terminated.
    exit status 1
    Error compiling for board Arduino Nano.

    Any help would be GREATLY appreciated.

    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by
      #2

      You need the library folder of the mysensors project installed in ~/Arduino/library, then everything should be ok.

      DdawmeD 1 Reply Last reply
      0
      • DdawmeD Offline
        DdawmeD Offline
        Ddawme
        wrote on last edited by
        #3

        So first I tried placing the entire folder in ~/Arduino. No luck there. Then left that folder where it was and copied the Libraries folder from Arduino-Master into ~/Arduino/Libraries. No luck. Nothing was showing up under sketchbook either.

        I then placed the Arduino-Master in ~/sketchbook and that allowed me to see the library in the Arduino IDE but I still get the same error. I then copied the Library folder from Arduino-Master into ~/sketchbook/libraries and still came out with the same error. Im considering doing a fresh Arduino IDE install.

        Running Arduino IDE version 1.6.9 with the newest MySensors Library and Ubuntu 16.04

        1 Reply Last reply
        0
        • tbowmoT tbowmo

          You need the library folder of the mysensors project installed in ~/Arduino/library, then everything should be ok.

          DdawmeD Offline
          DdawmeD Offline
          Ddawme
          wrote on last edited by
          #4

          @tbowmo I deleted all the files and reinstalled the Arduino IDE. Placed the library as you said and everything works! Thanks and sorry for the inconvenience!

          mfalkviddM 1 Reply Last reply
          1
          • DdawmeD Ddawme

            @tbowmo I deleted all the files and reinstalled the Arduino IDE. Placed the library as you said and everything works! Thanks and sorry for the inconvenience!

            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #5

            Great work @Ddawme, thanks for reporting back

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            9

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular