2-pin sensor