Basic light senzor write toutput to Serial
#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>#include <MeOrion.h>
double angle_rad = PI/180.0;
double angle_deg = 180.0/PI;
MeLightSensor lightsensor_8(8);void setup(){
Serial.begin(115200);}
void loop(){
Serial.println(lightsensor_8.read());
_delay(1);_loop();
}void _delay(float seconds){
long endTime = millis() + seconds * 1000;
while(millis() < endTime)_loop();
}void _loop(){
}