What does it mean when Allah says inanimate objects praise him?

1- Either they have some level of perception, and so they praise him as their creator. They don’t have an intellect like we do, but they have perception.

2- Or it means simply by following God’s laws and knowing what to do they are indicating they have a creator and showing that he is the best creator