Mah, guarda, ho dato un'occhiata a quei link ...
... a me sembra che la sola cosa che ti serve è questa funzione che puoi benissimo implementarti da solo all'interno del TUO codice (... ovviamnete adattandola) senza includere quella libreria :
/*
* get lux from voltage
*/
double temt6000_getlux(double vol) {
//suppose we read the voltage from the emitter of temt6000, with a 10k pulldown resistor connected to gnd
//V[V] = I[A]*R[ohm] = I[uA] * 1[A]/1000000[µA] * 10000[ohm] = I[uA] * 1[A]/1[uA] * 0.01[ohm]
//1[uA] = V[V] / 0.01[ohm] = 100 * V[V/ohm]
//the curve from datasheet seems y=2x+0, so lux = 2 * I[uA] = 2 * 100 * V[V/ohm]
return 2*(100*vol);
}
... in fin dei conti, misurata una tensione all'ingresso (che arriva dal TEMT6000 collegato con una resistenza di pulldown da 10K) non fa altro che fare un paio di banali moltiplicazioni