Hi all,
I've very new to Arduino so please go easy on me!
I'm trying to make a Beehive monitoring system for a friend.
I need to measure Temp, Humidity and weight and then send this data up to Thingspeak.
For the past few weeks I've been searching high and low to find the required code I need to put all of this together.
Attached is my code (it's a mix of lots of different code that has a nice wifi set up feature) it works as intended and loads the data to thingspeak but some reason the weight readings jump around for no reason.
I know the code is far from perfect (especially for the weight sensor section) but I'm really stuck.........
Can one of you experts PLEASE take a look at my code and make any improvements?
i.e. I would really like to have a offset so the weight of the Beehive is taken into account, rather than use "units" it would be nice to have a variable for the weight (I don't know how to do this......)
The board I'm using is a @NodeMCU 1.0 (ESP-12E Module).
Any Help would be more than welcome!!!
Thanks in advance!
Oli
This is the output from the serial monitor:
21:39:26.693 ->
21:39:26.693 -> ******************************************************
21:39:26.693 -> Temperature Value is :19C
21:39:26.693 ->
21:39:26.693 -> Humidity Value is :49%
21:39:26.693 ->
21:39:26.693 -> Weight of Hive is :102 grams
21:39:26.693 -> ******************************************************
21:39:26.693 ->
21:39:26.693 ->
21:39:58.978 ->
21:39:58.978 -> ******************************************************
21:39:58.978 -> Temperature Value is :19C
21:39:58.978 ->
21:39:58.978 -> Humidity Value is :49%
21:39:58.978 ->
21:39:58.978 -> Weight of Hive is :102 grams
21:39:59.012 -> ******************************************************
21:39:59.012 ->
21:39:59.012 ->
21:40:31.559 ->
21:40:31.559 -> ******************************************************
21:40:31.595 -> Temperature Value is :19C
21:40:31.595 ->
21:40:31.595 -> Humidity Value is :49%
21:40:31.595 ->
21:40:31.595 -> Weight of Hive is :107 grams
21:40:31.595 -> ******************************************************
21:40:31.595 ->
21:40:31.595 ->
21:41:04.290 ->
21:41:04.290 -> ******************************************************
21:41:04.290 -> Temperature Value is :19C
21:41:04.290 ->
21:41:04.290 -> Humidity Value is :49%
21:41:04.290 ->
21:41:04.366 -> Weight of Hive is :104 grams
21:41:04.366 -> ******************************************************
21:41:04.366 ->
21:41:04.366 ->
21:41:36.830 ->
21:41:36.830 -> ******************************************************
21:41:36.864 -> Temperature Value is :19C
21:41:36.864 ->
21:41:36.864 -> Humidity Value is :49%
21:41:36.864 ->
21:41:36.864 -> Weight of Hive is :71 grams
21:41:36.864 -> ******************************************************
21:41:36.864 ->
21:41:36.864 ->
21:42:09.727 ->
21:42:09.727 -> ******************************************************
21:42:09.727 -> Temperature Value is :19C
21:42:09.727 ->
21:42:09.727 -> Humidity Value is :49%
21:42:09.727 ->
21:42:09.727 -> Weight of Hive is :81 grams
21:42:09.727 -> ******************************************************
21:42:09.727 ->
21:42:09.727 ->
21:42:42.410 ->
21:42:42.410 -> ******************************************************
21:42:42.410 -> Temperature Value is :19C
21:42:42.410 ->
21:42:42.410 -> Humidity Value is :49%
21:42:42.410 ->
21:42:42.410 -> Weight of Hive is :112 grams
21:42:42.410 -> ******************************************************
21:42:42.410 ->
21:42:42.410 ->
21:43:15.004 ->
21:43:15.004 -> ******************************************************
21:43:15.004 -> Temperature Value is :19C
21:43:15.004 ->
21:43:15.004 -> Humidity Value is :49%
21:43:15.004 ->
21:43:15.004 -> Weight of Hive is :102 grams
21:43:15.004 -> ******************************************************
21:43:15.004 ->
21:43:15.004 ->
21:43:47.394 ->
21:43:47.394 -> ******************************************************
21:43:47.394 -> Temperature Value is :19C
21:43:47.394 ->
21:43:47.394 -> Humidity Value is :49%
21:43:47.394 ->
21:43:47.394 -> Weight of Hive is :107 grams
21:43:47.394 -> ******************************************************
21:43:47.394 ->
21:43:47.394 ->
21:44:19.887 ->
21:44:19.887 -> ******************************************************
21:44:19.943 -> Temperature Value is :19C
21:44:19.943 ->
21:44:19.943 -> Humidity Value is :49%
21:44:19.943 ->
21:44:19.943 -> Weight of Hive is :179 grams
21:44:19.943 -> ******************************************************
21:44:19.943 ->
21:44:19.943 ->
WIFI___NODE_Rev.3.3.ino (8.01 KB)