Two issues ...
1. Was the installed windshield the correct type/part# made specifically for BMWs equipped with rain sensors?
2. If the correct type of glass is in place, then was the car's rain sensor reprogrammed to accept the new/correct glass?
A yes for 1. and for 2. restores OEM operation.
2011 E92 335i 6MT (Space Gray/Coral): M-Sport / Premium / Convenience / Navi / L7 / InvisiGuard / Dinan Exhaust & Pedals
2011 CR-Z EX 6MT, 2008 GSX-R600
RETIRED: 2008 Dinan M5 SMG, 2006 330i 6MT, 2006 Dinan 550i 6MT, 1992 Accord EX 5MT