Nearby Beacons and Sensors: Privacy Policy
The app doesn't collect any personal information
The app doesn't collect any personal information
Install the APP@https://play.google.com/store/apps/details?id=com.isquarebsys.beaconscan
Open the APP
Click on HM-10 Scan
Connect and Click on Monitor button
2. Arduino Sketch
// Pins
// BT VCC to Arduino 5V out.
// BT GND to GND
// Arduino D8 (SS RX) - BT TX no need voltage divider
// Arduino D9 (SS TX) - BT RX through a voltage divider (5v to 3.3v)
// - BT: No need to connect STATE PIN
#include <AltSoftSerial.h>
AltSoftSerial BTSerial;
//declare variables
float tempC;
int tempPin = A0;
void setup()
{
Serial.begin(9600);
BTSerial.begin(9600);
}
void loop()
{
tempC = analogRead(tempPin); //read the value from the sensor
tempC = (5.0 * tempC * 100.0)/1024.0; //convert the analog data to temperature
Serial.print("Temp is ");
Serial.print((byte)tempC); //send the data to the computer
BTSerial.print("Temp is ");
BTSerial.print((byte)tempC); //send the data to the mobile
delay (3000);
}