Part 1 is the RFA aka Remote Function Actuator aka .. what receives the signal from your remote control.
Part 2 a bit tough to make it out under the foam, and I forget what it is anyhow

The red light, it's a GP security light blinky thing that I've never read up on to make sense of when it blinks
Middle bubble is the climate control solar sensor
Right side is the photocell sensor to turn the headlights on automatically.