But I have found that smartphones give very inconsistent results (probably due to image"improving" algorithms...), see https://www.instagram.com/p/B1q1syMoHfG/
So I moved on to the raspberry pi + camera, which is much easier and better to control as you need very, very consistent images...