communication

please am having problem with code communicating with raspberry pi from arduino.

can anyone help out with code to send lm35 sensor data from arduino uno via HC-05 bluetooth to raspberry pi 4
my code can currently display data to i2c lcd and serial monitor of arduino but pair via bluetooth with raspberry but dont know how to send lm35 sensor data to raspberry pi

(deleted)

can anyone help out with code to send lm35 sensor data from arduino uno via HC-05 bluetooth to raspberry pi 4

Use a second serial link then simply “print” the data to it

Which Arduino board are you using ?

Thanks for the response...am using arduino uno

am using arduino uno

Then try SoftwareSerial for the serial link to the HC-05 so that you can use the Serial monitor for debugging

This was the arduino code i used....it paired with raspberry pi but no data was received from raspberry end

Did you forget to add the code to your post ?

This was the code used in the arduino uno end and it paired with raspberry but no data was received from raspberry end

int t=0;
int sensor = A0;
float temp;
float tempc;
float tempf;
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
//const int rs= 12, en=11, d4=5, d5=4, d6=3, d7=2;
LiquidCrystal_I2C lcd(0x3F, 2, 16);
void setup() {
pinMode(sensor,INPUT);
lcd.init(); //initialize the lcd
lcd.backlight();
Serial.begin(9600);
}
void loop() {
delay(2000);
t=t+2;
temp=analogRead(sensor);
tempc=(temp5)/10;
tempf=(tempc
1.8)+32;
Serial.println("_______");
Serial.println(“Temperature Logger”);
Serial.print("Time in Seconds= ");
Serial.println(t);
Serial.print("Temp in deg Celcius = ");
Serial.println(tempc);
Serial.print("Temp in deg Fahrenheit = ");
Serial.println(tempf);
lcd.setCursor(0,0);
lcd.print("Temp in C = ");
lcd.println(tempc);
lcd.setCursor(0,1);
lcd.print("Temp in F = ");
lcd.println(tempf);
}

tempf=(tempc*1.8)+32;

Really ?

For goodness sake why did you not Read this before posting a programming question ?

UKHeliBob:
tempf=(tempc*1.8)+32;

Really ?

For goodness sake why did you not Read this before posting a programming question ?

Don't join the Darkside sir.

david_nbm:
This was the code used in the arduino uno end and it paired with raspberry but no data was received from raspberry end

What application are you running to probe bluetooth data on RPi?

it was a typo error it complied and no syntax error.

temf=(tempc*1.8)+32;

am building a remote patient monitoring system.

it was a typo error it complied and no syntax error.

Look at your post

I am willing to bet that it did not look like that in the IDE