We present here a low-cost Raspberry Pi (RPi)-based star sensor StarberrySense using commercial-off-theshelf (COTS) components, developed and built for applications in small satellites and CubeSat-based missions. A star sensor is one of the essential instruments onboard a satellite for attitude determination. However, most commercially available star sensors are expensive and bulky to be used in small satellite missions. StarberrySense is a configurable system -it can operate as an imaging camera, a centroiding camera, or as a star sensor. We describe the algorithms implemented in the sensor, its assembly and calibration. This payload was selected by a recent Announcement of Opportunity call for payloads to fly on the PS4-Orbital Platform by the Indian Space Research Organization (ISRO).