Auto brightness adjust playing up

Phone has recently started randomly adjusting brightness to 18% making screen unreadable in current lighting.