From robot to phone via Bluetooth using Bluetooth electronics

how do I transfer data from the heat sensor to my phone?

#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
  Serial.begin(9600);
  mlx.begin();  
}
void loop() {
  Serial.print("Object Temperature:  "); 
  Serial.print(mlx.readObjectTempC()); 
  Serial.print("C / "); 
  Serial.print(mlx.readObjectTempF()); 
  Serial.println("F");
  Serial.println();
  delay(500);
}

Set up a HC05 Bluetooth module on a software serial port (save the hardware port for program upload at least during development).

There are dozens of pages to set up Bluetooth and Uno. Here is one:

Also very helpful is the serial input basics tutorial.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.