I got a Cjmcu-mlx90614 sensor, mostly it comes as I2c port, but mine is with serial port
I tried using SoftwareSerial library reading data, it didn´t work.
I read the mlxAdafruit library works with i2c port, there’s no information about this sensor specifically in google and either on youtube.
I don’t have more ideas to program this sensor.
please help!
how can I program this sensor?
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
Serial.begin(9600);
mySerial.begin(9600); // communicate at the module's default baud rate
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
}
void loop() { // run over and over
if (mySerial.available()) {
Serial.println(mySerial.read());
delay (2000);
}
i used example program from SoftwareSerial and made some modifications.