I am using an Arduino Nano BLE33 Sense for image classification. My goal is to set some output pins if the AI detects a class. How can I code this in the image classification sketch I downloaded from Edge Impulse? I tried it with
if (result.classification[1].value >= 0.7) { digitalWrite(11, HIGH);};
but it doesn’t work. Also I tried to write the value in a different variable and read the new variable, but this also didn’t work.
Does the result.classification[x].value variable even store the results and can I read this out? Or am I completely wrong?
Thx for your help.