Mlx90614 Proteus Library < Hot >
The following sketch initializes the sensor and reads both ambient and object temperatures, printing them to the Serial Monitor (which can be viewed in Proteus using the Virtual Terminal tool).
: Contains the electrical and symbolic data for the component. mlx90614 proteus library
#include #include Adafruit_MLX90614 mlx = Adafruit_MLX90614(); void setup() Serial.begin(9600); if (!mlx.begin()) Serial.println("Error connecting to MLX sensor!"); while (1); ; void loop() Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC()); Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C"); delay(500); Use code with caution. Running the Simulation Compile the code in Arduino IDE and export the . Double-click the Arduino in Proteus and load the Hex File. Click the Play button. The following sketch initializes the sensor and reads