Uh can somebody pls help me

uh im working on a school project which is a algae air purifier thingy.to cut costs we decided we wouldnt use weather sensors and instead use a lcd arduino uno and hc 05 bluetooth module.i used mit app inventor for the automated sending part.the arduino code and the mit app inventor code are both partly made by chatgpt can yall pls check if this is correct or not(am a newbie to coding and app development btw and pls excuse my bad english)
arduino code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>

// LCD I2C address (commonly 0x27 or 0x3F)
#define LCD_ADDR 0x27
LiquidCrystal_I2C lcd(LCD_ADDR, 16, 2);  // 16x2 LCD

// Bluetooth on digital pins 10 (RX), 11 (TX)
SoftwareSerial BT(10, 11); // RX, TX

void setup() {
  lcd.begin();         // Initialize the LCD
  lcd.backlight();     // Turn on the backlight
  lcd.setCursor(0, 0);
  lcd.print("Waiting...");
  
  BT.begin(9600);      // Start Bluetooth communication
}

void loop() {
  if (BT.available()) {
    String msg = BT.readStringUntil('\n');  // Read until newline character
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print(msg);     // Print the full message (ex: Kolkata: 31.5°C)
  }
}

Hello,can you explain how a display replaces a sensor ?
what are the conditions to do what on this project ?
this short sketch use Bluetooth or Serial communication ?

what doesn't seem to work?
do you see "waiting"?

How is an

constructed from

weather sensors

and also explain how

lcd arduino uno and hc 05 bluetooth module

are replacements for the weather sensors.

I see this is your first post. Let me explain how the forum is used.

YOU wire up the components, YOU write the code. If/when it doesn't work well, you make a hand drawn wiring diagram, take a photo of the diagram and post it along with all the source code (do a Tools/Auto Format first) and any relevant Serial output both in code tags

Now the volunteer helpers can give you hardware and/or software advice re fixes, improvements or alternate designs.

2 Likes

sorry for bad explanation.my teacher said that i need to add a screen that will display stats of weather i wanted to put the most info i could so instead of using a sensor for every stat i used a bluetooth module,app along with openweather api key which will send info to the arduino every 3 hours.
i am using this kind of approach because my teacher has given a budget of 1500 rupees or 17.34 dollars

uh sorry am new the problem is that the parts actually havent arrived yet so i am doing most of the work i can without them

To the best of your ability, please make a drawing of your project. It does not have to be perfect. Just enough to start questions and answers for improvement or correction.

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