How can I compare normals in AN with python
The only issue I see here is comparing vectors that are float vectors and that can give false negatives.

For vector comparison it's better to use "distance", rather than "==".
(Also, in blender precision appears to go up to 6, so use at most &lt; 0.00001)

For more see: https://github.com/JacquesLucke/animation_nodes/issues/327 



However, that means in your code:

if (Normal - mirando_arriba).length_squared &lt; 0.0001:
    result = rotateY
    TextBlock = "Mira hacia arriba"


and same for the rest.