Read Analog Data from the Temperature Sensor TMP36 and publish via MQTT.
The Arduino Ethernet Shield is used for the communication with the B4J Server.
Tested also on an Android MQTT Client by connecting to the B4J server and subscribing to topic "temperature".
• 1x Arduino MEGA
• 1x Arduino Ethernet Shield
• 1x TMP36 Temperature Sensor
Arduino = TMP36 (looking at the flat side of the sensore from left To right)
5v = Pin 1 (left) (Red)
A0 = Pin 2 (middle) (Yellow)
GND = Pin 3 (right) (Black)
Download Source Code
• Experiment is completed.
Experiments & prototyping with the Arduino.
1 post • Page 1 of 1