sht75 example
The SHM75 sensor belongs to the I2C family and as a such needs two lines to connect with a microcontroller: SCK(clock) and SDA(data) .. see picture below ..
As you intend to use 89C51 you can select virually any two pins, for example P1.0 and P1.1 ..
Some designers use pins from P0 port because of their Open Drain configuration ..
Keep in mind that both lines require 10kΩ pullups ..
More info and examples:
**broken link removed**
Regards,
IanP