First off, I hope that heat lamp is outside the cage so the snake cant come into contact with it. As for your answer, put one sensor on the cool side of the cage(generally the opposite end of where your heat lamp and/or UTH is). Put the other sensor close to the basking spot or hottest spot on the warm side. I put my sensors just above the snakes height and let them hang. That way if the snake bumps them, they just swing back into position. Also the snake cant sit on them, pee on them or bury them as that would give the wrong ambient temp thus causing your heating device to overheat the cage. For a ball python, its not too bad but for something like my 6ft BCI girl who pees a tsunami, it would destroy a sensor if she pee'd on it.