included analog and digital fail test sensors

+fixed up  the checksensor function.