Digital input test?

Is it possible to test anyway digital inputs so you can see is there any of those used?

So you can add sensors and later check that "This sensor is added to digital input 10". Even you not configure it before?