To avoid that, strive to find shots with a lot of contrast and tonality.
That means if your photo has only similar colors, it can come out looking flat. To avoid that, strive to find shots with a lot of contrast and tonality.