How your castoff smartphone can fight deforestation, in real time