Analog Sensor Arduino

#include <OzIDManager.h>
#include <OzAnalogSensor.h>
				
OzIDManager* manager;
OzAnalogSensor* analogSensor;

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

  manager = new OzIDManager;
  manager->_sendACK = true;
  manager->_checksum = true;

  OzCommunication::setIDManager(manager);

  analogSensor = new OzAnalogSensor(A5);
  analogSensor->reset();

  int x=1;
  manager->sendLinkSetup();
  manager->PrintWelcomeLine(analogSensor, x++, "MyAnalogSensor");
}

void loop()
{
  OzCommunication::communicate();
  analogSensor->ownLoop();
}

More information