Data Sheet

Core Spartan Documentation Modern Robotics, Inc
Version 3.0.3 Page 50
int getIntensity(int setting)
Returns the strength of the signal to indicate how close the object is. The
parameter setting refers to the frequency at which the user wants to read. The
user can enter 6 or 600 for 600Hz and 12 or 1200 for 1200Hz.
int value;
value = locator.getIntensity();
…or…
Serial.print(locator.getIntensity());