A CSA-doped polyaniline organic phototransistor uses soft-lithography elastomer gratings to increase its response to 365 nm UV light. The device results illustrate how patterned surfaces can influence light absorption and electrical behavior in organic photodetectors.