Are you working with the bare component, or with one of the boards available?
There are boards available with a little pot on them and some other electronics - those contain a comparator. They seem to usually have 4 pins - power, ground, an analog out (probably raw output), and a digital out (output of the comparator, the trip point of which is set by the pot)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Are you working with the bare component, or with one of the boards available?
There are boards available with a little pot on them and some other electronics - those contain a comparator. They seem to usually have 4 pins - power, ground, an analog out (probably raw output), and a digital out (output of the comparator, the trip point of which is set by the pot)