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. Development
  3. Using unsupported sensors (LM35 for example)

Using unsupported sensors (LM35 for example)

Scheduled Pinned Locked Moved Development
6 Posts 4 Posters 3.0k 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.
  • Ahmad MustafaA Offline
    Ahmad MustafaA Offline
    Ahmad Mustafa
    wrote on last edited by
    #1

    Hi everyone,

    I'm very new to mysenors platform and I'm intending to use it in an upcoming project as I think it's very awesome, but I have some concerns, I need to use some sensors which are not listed in the supported ones, LM35 temp sensor for example, and unfortunately I can't get the supported sensors.

    So shall I use the custom value variables for this sensor or shall I use the temp library which is written for another sensor (DS18B20)? and if I use the custom variable will I have problems with controllers or not? and which controller is best in case of custom unsupported sensors?

    Thank you in advance.

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

      @Ahmad-Mustafa

      Why are you forced to use lm35? (which is an analog output temperature sensor)

      Ds18s20 is a digital temperature sensor, which supports multiple devices on the same port pin

      1 Reply Last reply
      0
      • Ahmad MustafaA Offline
        Ahmad MustafaA Offline
        Ahmad Mustafa
        wrote on last edited by
        #3

        I'm not focused, it's just where I live the only available sensor, and of course I'm not going to ship a single tiny sensor, I don't have enough time though as I'm having a tight deadline

        SparkmanS 1 Reply Last reply
        0
        • Ahmad MustafaA Ahmad Mustafa

          I'm not focused, it's just where I live the only available sensor, and of course I'm not going to ship a single tiny sensor, I don't have enough time though as I'm having a tight deadline

          SparkmanS Offline
          SparkmanS Offline
          Sparkman
          Hero Member
          wrote on last edited by Sparkman
          #4

          @Ahmad-Mustafa You can use any sensor you want as long as the sensor type is supported by MySensors and the controller you are using. You will need to modify one of the example sketches to accommodate the LM35. I'm thinking modifying the DHT temp/humidity one may be the easiest. You would have to include the appropriate library (assuming an LM35 library exists for Arduino) and eliminate the humidity related info from the sketch. There's no need to use custom value variables as you should be able to use the temp related ones.

          Cheers
          Al

          1 Reply Last reply
          0
          • Ahmad MustafaA Offline
            Ahmad MustafaA Offline
            Ahmad Mustafa
            wrote on last edited by
            #5

            Thank you so much and hope this will help.

            1 Reply Last reply
            0
            • AWIA Offline
              AWIA Offline
              AWI
              Hero Member
              wrote on last edited by
              #6

              Have a look at this sketch
              playground it will provide temperature which can be sent in a similar was as in the DHT or other Example MySensors sketch.

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


              14

              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