AI: fixed sending readings, fixed one case of wasting memory
AI: added threshold for distinguishing different values