Franco-Italian chipmaker STMicroelectronics struck an upbeat tone for the second half of the year on Wednesday after a steep fall in quarterly sales of sensors compelled it to trim its investment plans.