Sensor array

I have a three-dimensional material rack with more than a hundred material levels. I want to set a material level sensor for each material level. If adding one by one is too much work, is there any better way?
Note: I am using a ray sensor now.


I am not sure if I understood your question correctly. But maybe this forum entry can help you:

Have a nice day!

No, the three-dimensional material rack in the attached picture has 112 material levels. I want to set sensors for each material level, so if I use a ray sensor to do it, I will add 112 ray sensors, 112 Boolean models and 112 coordinates, and parameter configuration at the same time, this workload is very large, I want to know if there is a faster way to achieve my needs.
Thanks again!