Here is the Photon code and hardware details to build a solar powered environment monitor. It uses a combo module of 3 separate sensors that are read via I2C protocol to periodically measure and record:
The 3 sensors are:
After the measurements are taken the values are sent to Dweet. The Photon then measure its own battery level and will deep sleep for a variable amount of time between measurements in order to conserve battery life. The sleep time will be longer when the battery gets low.
The following libraries are used:
The pin connections are very simple as there is only one way to connect the battery, solar panel and sensor (just uses standard I2C pins).