In this post, I have used a LDR to sense the black obstacles (cactus )in this game and make the dino jump using a system of Arduino and pyt