Hi Koneni,
The main goal of switch accessibility is to help disabled people to control their devices when they have motor impairments.
As far as I know, you can set up any physical switch, connected to USB or bluetooth devices (bluetooth connectors for physical switches, or keyboards, etc..). You can also asign a physical button from your phone (volume up and down) to act as your switches, but this is an option created for developers to be able to test their apps without any physical devices, so it is possible but maybe not very useful for handicaped people.
But I think you can’t set up sensor values changes to act as your switch. Are you a developer? Or do you need a very special access because of a physical impairment? There are a lot of different physical switches activated in various ways, maybe someone can feed very special needs.
You can do more things using IOS, you can set up a switch using your hole screnn, or right or left movements of your head using your front camera.
In a Mac computer you can also make alternative selections by raising your eyebrows, opening your mouth or smiling.
I try to imagine how a sensor value can be useful for controlling your phone by scanning methods. Light o temperature sensor, proximity, incoming call? In that case, the person should be able to change these values in some way. I can’t imagine how it can help… But if you explain it a litlle bit more maybe you open my mind!
Hoping it can help you a little.
Anna Pobes