Why isn't my iPhone automatically adjusting its brightness?
Try turning your iPhone's brightness slider to the middle or slightly lower, but leave auto-brightness on.  The phone will usually auto-adjust its brightness after it gets locked (display turned off) and then turned on, maybe a minute or so later, in different lighting conditions.