I want to write a Phyton code to android phone that can use some of the android sensors, like location. Does anyone know how to do so?
I have moved this to #users since it’s not a question related to developing Python itself.
You can use kivy. It allows you to create cross-platform apps and supports Android.
I’m not sure that it supports all sensors, but I believe that the majority of them.
If GUI is not required, termux with termux-api should also be useful.