ACS712 Code to Arduino Cloud code

I have trouble in changing this code to Arduino Cloud code. Any help is appreciated

#include "ACS712.h"

ACS712 sensor(ACS712_20, A0);
//ACS712_20A for 20 Amp type
//ACS712_30A for 30 Amp type

void setup() {
  Serial.begin(9600);
  sensor.calibrate();
}

void loop() {
  float I = sensor.getCurrentAC();
//ignoring the value below 0.09
  if (I < 0.09) {
    I = 0;
  }
  Serial.println(I);
  delay(300);
}

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