Deta Space(Struggling to use)

I am currently endeavoring to access the DetaSpace website. Despite having successfully created an account, I am encountering challenges in utilizing its functionalities. My objective is to transmit data from the Serial Monitor, operating at a baud rate of 115200, to the aforementioned website. I kindly seek any guidance or advice on how to achieve this task. Below is the code I am currently working with:

//Lesson1

const int relay = 5;

int sensor_pin = 4;
int output_value;
int led = 18;

void setup() {
  Serial.begin(115200);
  Serial.println("Reading From the Sensor ...");
  pinMode(led, OUTPUT);
  pinMode(relay, OUTPUT);
  digitalWrite(led, HIGH);
  digitalWrite(relay, LOW);
  delay(500);
  digitalWrite(relay, HIGH);
  digitalWrite(led, LOW);


}

void loop() {
  digitalWrite(relay, LOW);
  output_value = analogRead(sensor_pin);
  output_value = map(output_value, 550, 0, 0, 100);
  Serial.print("Moisture : ");
  Serial.print(output_value);
  Serial.println("%");
  delay(50);

  while(output_value <= -100) {
    digitalWrite(led, HIGH);
    output_value = analogRead(sensor_pin);
    output_value = map(output_value, 550, 0, 0, 100);
    Serial.print(output_value);
    digitalWrite(relay, HIGH);
    Serial.println("Current Flowing");
    delay(50);
    
  }

  digitalWrite(led, LOW);
  digitalWrite(relay, LOW);
  Serial.println("Current not Flowing");


}

Thank you.

have a look at how-to-get-the-best-out-of-this-forum
what microcontroller(s) are you using?
how do intend to communicate with Deta Space? WiFi, Ethernet, ????

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