YUVAN SRI S
Published

Current Sensor Integration with the KiwisIoT Platform

Real-time current monitoring made efficient with KiwisIoT, enabling accurate tracking, instant insights, and smarter energy management.

BeginnerWork in progress10
Current Sensor Integration with the KiwisIoT Platform

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1
SparkFun Low Current Sensor Breakout - ACS712
SparkFun Electronics SparkFun Low Current Sensor Breakout - ACS712
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×3

Software apps and online services

Arduino IDE
Arduino IDE
KiwisIoT
Kiwistron KiwisIoT

Story

Read more

Schematics

Circuit Diagram

Code

Untitled file

C/C++
#include <KiwisIoT.h>

const char* ssid = "wifi name";              // Replace with your WiFi name
const char* pass = "wifi password";          // Replace with your WiFi password
const char* topic = "dash_1790138701162";    // Replace with your dashboard topic ID

#define CURRENT_PIN A0

KiwisIoT kiwisiot(ssid, pass, topic);

void setup() {
  Serial.begin(115200);
  delay(1000);

  kiwisiot.begin();

  Serial.println();
  Serial.println("Current Sensor Started");
}

void loop() {
  kiwisiot.run();

  // Read current sensor analog value
  int sensorValue = analogRead(CURRENT_PIN);

  Serial.print("Current Sensor Value: ");
  Serial.println(sensorValue);

  // Send data to KiwisIoT Channel 1
  kiwisiot.send("1", sensorValue);

  delay(2000);
}

Credits

YUVAN SRI S
20 projects • 1 follower

Comments